home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VCIRCLE.S < prev    next >
Text File  |  1993-03-16  |  1KB  |  43 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Circle.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _v_circle
  11. _v_circle:
  12. ;    .cargs    #8,handle.w,x.w,y.w,radius.w
  13.  
  14. handle      =         8
  15. x          =         10
  16. y          =         12
  17. radius      =         14
  18.  
  19.           link        a6,#0
  20.  
  21.           clr.w     -(sp)                ;* There are some holes in the
  22.           move.w    radius(a6),-(sp)    ;* pstin definitions for circle,
  23.           clr.l     -(sp)                ;* so build a temporary ptsin on
  24.           move.l    x(a6),-(sp)         ;* the stack.
  25.           move.l    sp,a0                ;* Save a pointer to ptsin.
  26.  
  27. ;          VContrl    #11,#4,#3
  28.           move.w    handle(a6),-(sp)    ; contrl[6]
  29.           move.w    #4,-(sp)            ; contrl[5]
  30.           subq.l    #2,sp                ; contrl[4]
  31.           clr.l     -(sp)                ; contrl[3,2]
  32.           move.w    #3,-(sp)            ; contrl[1]
  33.           move.w    #11,-(sp)            ; contrl[0]
  34.  
  35.           subq.l    #8,sp                ;* -> ptsout, intout
  36.           move.l    a0,-(sp)            ;* -> ptsin
  37.           subq.l    #4,sp                ;* -> intin
  38.           pea        16(sp)                ;* -> contrl
  39.  
  40.           jmp        vdicall
  41.  
  42.           end
  43.